package com.lxmes.business.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.lxmes.common.annotation.Excel;
import com.lxmes.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 出入库流水对象 cc_warehouserecord
 * 
 * @author 王超
 * @date 2022-07-03
 */
public class CcWarehouserecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键编号 */
    private Long id;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String itemName;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String itemId;

    /** 业务类型（字典控制）;（0入库，1出库） */
    @Excel(name = "业务类型", readConverterExp = "0=出库,1=入库")
    private Long bsinssType;

    /** 出入库数量 */
    @Excel(name = "出入库数量")
    private BigDecimal crNum;

    /** 供应商 */
  //  @Excel(name = "供应商")
    private Long supplyId;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplyName;

    /** 大类Id */
   // @Excel(name = "大类Id")
    private String classId;

    /** 大类名称 */
    @Excel(name = "大类名称")
    private String className;

    /** 更新时间 */
    private String beginTime;

    /** 更新时间 */
    private String endTime;

    /** 规格 */
    private String spec;
    /*单位*/
    private String unit;

    private String queryParams;




    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setItemName(String itemName) 
    {
        this.itemName = itemName;
    }

    public String getItemName() 
    {
        return itemName;
    }
    public void setItemId(String itemId) 
    {
        this.itemId = itemId;
    }

    public String getItemId() 
    {
        return itemId;
    }
    public void setBsinssType(Long bsinssType) 
    {
        this.bsinssType = bsinssType;
    }

    public Long getBsinssType() 
    {
        return bsinssType;
    }
    public void setCrNum(BigDecimal crNum)
    {
        this.crNum = crNum;
    }

    public BigDecimal getCrNum()
    {
        return crNum;
    }
    public void setSupplyId(Long supplyId) 
    {
        this.supplyId = supplyId;
    }

    public Long getSupplyId() 
    {
        return supplyId;
    }
    public void setSupplyName(String supplyName) 
    {
        this.supplyName = supplyName;
    }

    public String getSupplyName() 
    {
        return supplyName;
    }
    public void setClassId(String classId)
    {
        this.classId = classId;
    }

    public String getClassId()
    {
        return classId;
    }
    public void setClassName(String className) 
    {
        this.className = className;
    }

    public String getClassName() 
    {
        return className;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getQueryParams() {
        return queryParams;
    }

    public void setQueryParams(String queryParams) {
        this.queryParams = queryParams;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deptId", getDeptId())
            .append("itemName", getItemName())
            .append("itemId", getItemId())
            .append("bsinssType", getBsinssType())
            .append("crNum", getCrNum())
            .append("supplyId", getSupplyId())
            .append("supplyName", getSupplyName())
            .append("classId", getClassId())
            .append("className", getClassName())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
